#ifndef _H_CC2640R2F_DEFINE_H_
#define _H_CC2640R2F_DEFINE_H_

////////////////////////////////////////////////////////////////////////////////
/*
    System runtime environment defines
*/
#ifndef NULL
#define NULL ((void *)0)
#endif
////////////////////////////////////////////////////////////////////////////////

////////////////////////////////////////////////////////////////////////////////
#define BLE_USE_PERIOD_NOTIFY                    0
#define CCKS_CHECKSIGNDATA_SHOW                  1
#define BLE_RECEIVEDATA_SHOW                     1
/*
    User define part
*/
#define H_CC2640R2F_UART_BaudRate                115200
#define H_CC2640R2F_UART_RxLength                128


#define H_CC2640R2F_UART_TskMd_Enable            0x00

#if (H_CC2640R2F_UART_TskMd_Enable)

#define H_CC2640R2F_UART_TxLength                128

//The UART task priority, the BLE task should be highest
#define H_CC2640R2F_UART_TskMd_Priority          2
#define H_CC2640R2F_UART_TskMd_Task_Stack_Size   644

#endif


extern unsigned char H_CC2640R2F_MAC_ADDR[6];

#define H_CC2640R2F_BLE_DeviceName              "ZCSmart_LockTest"

/*
#define ZCSmart_PERIPHERAL_TASK_PRIORITY        1
#define ZCSmart_PERIPHERAL_TASK_STACK_SIZE      644
*/
/*
#define motorTaskMd_Task_Stack_Size             644
#define motorTaskMd_Task_Stack_PRIORITY         3
*/

#define lockcontrolTaskMd_Task_Stack_Size       1024//2048//644//644
#define lockcontrolTaskMd_Task_PRIORITY         4


extern void H_CC2640R2F_UART_Debug(const char* format, ...);

extern void H_CC2640R2F_UART_Debugprinthex(unsigned char *data, unsigned short len);

extern void H_CC2640R2F_UART_DebugTxBuff(unsigned char *data, unsigned short len);

/*
    This flag defined for GPIO blinking
*/
//extern unsigned char H_CC2640R2F_GPIO_Flag;
////////////////////////////////////////////////////////////////////////////////

#endif
